package com.jpa.lgt.service.impl;

import com.jpa.lgt.VO.DeviceVO;
import com.jpa.lgt.core.constant.Constants;
import com.jpa.lgt.service.DeviceService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author lgt
 * @time 2018/9/18
 * @description：
 */
@Service
public class DeviceServiceImpl extends BaseServiceImpl implements DeviceService {


    @Override
    public List<DeviceVO> findDeviceVO(Integer deviceTypeId) {
        Map<String, Object> params = new HashMap<>();
        params.put("deviceTypeId", deviceTypeId);
        return sqlRelativesVO(Constants.DEVICESQL.FIND_DEVICEVO, params, DeviceVO.class);
    }
}
